export function deepClone(obj) {
	if (typeof obj !== 'object' || obj === null) {
		return obj;
	}
	const newObj = Array.isArray(obj) ? [] : {};
	for (let key in obj) {
		if (obj.hasOwnProperty(key)) {
			newObj[key] = deepClone(obj[key]);
		}
	}
	return newObj;
}